package com.xm.settlement.service.impl;

import com.baomidou.framework.service.impl.SuperServiceImpl;
import com.baomidou.mybatisplus.plugins.Page;
import com.xm.settlement.commons.utils.PageInfo;
import com.xm.settlement.mapper.AppPackageDescMapper;
import com.xm.settlement.model.AppPackageDesc;
import com.xm.settlement.service.IAppPackageDescService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 * AppPackageDesc 表数据服务层接口实现类
 *
 */
@Service
public class AppPackageDescServiceImpl extends SuperServiceImpl<AppPackageDescMapper, AppPackageDesc> implements IAppPackageDescService {

    @Autowired
    private AppPackageDescMapper appPackageDescMapper;


    @Override
    public void selectDataGrid(PageInfo pageInfo) {
        Page<AppPackageDesc> page = new Page<AppPackageDesc>(pageInfo.getNowpage(), pageInfo.getSize());
        List<AppPackageDesc> list = appPackageDescMapper.selectAppPackageDescList(page);
        pageInfo.setRows(list);
        pageInfo.setTotal(page.getTotal());
    }

}